﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="billsmanager.ascx.cs" Inherits="administrator_usercontrol_billsmanager" %>
<asp:MultiView ID="mt1" ActiveViewIndex="0" runat="server">
<asp:View ID="view1" runat="server">
<table style="width:100%;">
    <tr>
        <td colspan="4" align="center">
            Quản lý khách hàng</td>
    </tr>
    
    <tr>
        <td align="center" colspan="4">
            <asp:Label ID="Lbthongbao0" runat="server" Font-Bold="False" Font-Italic="True" 
                ForeColor="Red"></asp:Label>
        </td>
    </tr>
   <tr>
        <td>
            Từ ngày:<asp:DropDownList ID="DropDownList2" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList3" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList4" runat="server">
            </asp:DropDownList>
        </td>
        <td>
            Đến ngày:<asp:DropDownList ID="DropDownList5" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList6" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList7" runat="server">
            </asp:DropDownList>
        </td>
        <td>
            Trạng thái:<asp:DropDownList ID="DropDownList8" runat="server">
            </asp:DropDownList>
        </td>
        <td>
            <asp:Button ID="Button3" runat="server" onclick="Button3_Click" 
                Text="Lọc &gt;&gt;" />
        </td>
    </tr>
    <tr>
        <td colspan="4" align="center">
            <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" 
                BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                CellSpacing="2" ShowFooter="True" 
                 
                AllowPaging="True" AllowSorting="True" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound" 
                onrowdeleting="GridView1_RowDeleting" PageSize="5" 
                onsorting="GridView1_Sorting">
                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                <Columns>
                    
                    <asp:BoundField DataField="TenKhacHang" HeaderText="Tên KH" >
                    <HeaderStyle Width="200px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SoDTKH" HeaderText="Số điện thoại" >
                    <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="EmailKH" HeaderText="Email" >
                    <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="strThoiGianDatHang" HeaderText="ngày đặt hàng" SortExpression="strThoiGianDatHang" >
                    <HeaderStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="strThanhTien" HeaderText="thành tiền" SortExpression="strThanhTien">
                    <HeaderStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="strTrangThai" HeaderText="trạng thái" SortExpression="strTrangThai">
                    <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="chi tiết">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbSua" CommandName="Edit" CommandArgument='<%# Eval("ID") %>' CausesValidation="false">chi tiết</asp:LinkButton>
                        </ItemTemplate>       
                        <HeaderStyle Width="70px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbXoa" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' CausesValidation="false">Xóa</asp:LinkButton>
                        </ItemTemplate>
                        
                        <HeaderStyle Width="50px" />
                    </asp:TemplateField>
                </Columns>
              
                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
              
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td colspan="2">
            &nbsp;</td>
    </tr>
</table>
</asp:View>

<<asp:View ID="view2" runat="server">


    <table style="width:100%;">
        <tr>
            <td align="center" colspan="4">
                Thông tin sản phẩm</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Label ID="Lbthongbao" runat="server" Font-Bold="False" Font-Italic="True" 
                    ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Tên khách hàng:</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
            <td>
                Ngày đặt:</td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Số điện thoại:</td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
            <td>
                Tổng tiền:</td>
            <td>
                <asp:TextBox ID="TextBox5" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Email:</td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" Enabled="False" Width="200px"></asp:TextBox>
            </td>
            <td>
                Trạng thái:</td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" Width="205px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                <asp:Label ID="LbID" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="Label2" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:GridView ID="GridView2" runat="server" BackColor="#DEBA84" 
                    BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    CellSpacing="2">
                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <Columns>
                        <asp:BoundField DataField="MaSanPham" HeaderText="Mã sản phẩm" />
                        <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẩm" />
                        <asp:BoundField DataField="SoLuong" HeaderText="Số lượng đặt" />
                        <asp:BoundField DataField="strThanhTien" HeaderText="Thành tiền" />
                    </Columns>
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="Button2" runat="server" CausesValidation="False" 
                    onclick="Button2_Click" Text="&lt;&lt; Quay lại" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="Lưu" Width="100px" 
                    onclick="Button1_Click" />
            </td>
        </tr>
    </table>


</asp:View>
</asp:MultiView>